package com.rdd.action

import org.apache.spark.{SparkConf, SparkContext}

object testCollect {

  def main(args: Array[String]): Unit = {

    val conf = new SparkConf().setAppName("testCollect").setMaster("local")
    val context = new SparkContext(conf)

    val txt = context.textFile("src\\main\\scala\\testTxt.txt")
    txt.collect().foreach(println)

    context.stop()
  }

}
